Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read from queryString instead of rawQueryString #360

Merged
merged 4 commits into from
Dec 17, 2023

Conversation

zachary822
Copy link
Contributor

Fixes #348

@ocramz ocramz self-requested a review December 17, 2023 07:53
Copy link
Collaborator

@ocramz ocramz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, could you add a test too please?

@zachary822 zachary822 requested a review from ocramz December 17, 2023 09:42
@zachary822
Copy link
Contributor Author

I'm new to Haskell in general (especially testing), hopefully this is what you are looking for.

Copy link
Collaborator

@ocramz ocramz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @zachary822 , this is very good! Only thing, I wouldn't put the test under "queryParam" but higher up in the ScottyM section, in a new section called middleware:

describe "middleware" $ do
  context "rewrites the query string" $ do
    ...

@zachary822 zachary822 requested a review from ocramz December 17, 2023 11:04
Copy link
Collaborator

@ocramz ocramz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! 👍

@ocramz ocramz merged commit 4bdeb44 into scotty-web:master Dec 17, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not able to rewrite the query string using Network.Wai.Middleware.Rewrite
2 participants